package com.epmis.epmis.Mapper;

import com.epmis.epmis.pojo.Enterprise;
import com.epmis.epmis.pojo.Post;
import com.epmis.epmis.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface LoginMapper {
    User Login(String username);

    User getUserMessage(String username);

    Enterprise findEnterprise(String enterpriseName);

    Enterprise getEnterpriseId(String enterpriseName);

    User getOriginatorId(String phone);

    User findPhone(String phone);

    User findEmail(String email);

    User havePhone(String phone);

    User haveEmail(String email);

    Post getPostId(int enterprise_id);

    Post insertManagerPost(int enterprise_id);

    int insertEnterprise(String enterpriseName);

    int insertMember(User user);

    int insertHighPost(int enterprise_id);

    int updateOriginatorId(int enterpriseId,int originatorId);

    int updatePassword(String password,String phone);

    int updatePasswordE(String password,String email);
}
